<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
// Route::get('think', function () {
//     return 'hello,ThinkPHP8!';
// });

// Route::get('hello/:name', 'index/hello');



// 定义index模块的路由
// Route::group('index',function(){
//     // Route::get('hello', 'index/hello');
    
//     // 定义index模块的路由
//     Route::group('test',function(){
//         // Route::get('hello', 'index/hello');
//         // ...
//     })->namespace('app\index\controller\test')->middleware(['app\index\controller\test\middleware\index']);

// })->namespace('app\index\controller');


// Route::any('/:path', \app\Dispatch::class)
//         ->pattern(['path'=>'[\w\.\/-]+']);
// 开启多模块URL自动解析
// Route::auto();